package com.example.yan_music.contract;

import com.example.yan_music.base.presenter.IPresenter;
import com.example.yan_music.base.view.IView;
import com.example.yan_music.bean.wangyi.Banner;
import com.example.yan_music.bean.wangyi.RecommendSongList;

import java.util.List;

public interface IMainContract {

    interface View extends IView{
        /**
         * 设置banner数据
         * @param bannerList
         */
        void setmBanner(List<Banner.BannersBean> bannerList);

        /**
         * 设置推荐歌单
         *
         * @param songLists
         */
        void setRecommendSongLists(List<RecommendSongList.ResultBean> songLists);

        /**
         * 播放歌曲
         *
         * @param songUrl
         */
        void playSong(String songUrl);

    }

    interface Presenter extends IPresenter<View>{
        /**
         * 获取Banner
         */
        void getBanner();

        /**
         * 获取推荐歌单
         */
        void getRecommendSongLists();

        void getPlayUrl(int songId, String songName);
    }
}
